package MyByteStream2;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

public class ByteStreamDemo5 {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\File\\VID20231026202740.mp4");
        FileOutputStream fos = new FileOutputStream("C:\\Users\\Zdm\\Videos\\Captures\\copy");
        byte[]bytes = new byte[5 * 1024 * 1024];
        int len;
        while ((len = fis.read(bytes)) != -1){
            fos.write(bytes,0,len);
        }
        fos.close();
        fis.close();
    }
}
